import {OdoTypeKey} from "./init";
import {DefaultOptionType} from "rc-select/lib/Select";

/**
 * 出库类型约束---销售出库
 */
export const SALE: OdoTypeKey = "sale" ;
/**
 * 出库类型约束---服务出库
 */
export const SERVICE: OdoTypeKey = "service" ;
/**
 * 出库类型约束---调拨出库
 */
export const TRANSFER: OdoTypeKey = "transfer" ;
/**
 * 出库类型约束---返货出库
 */
export const RETURN: OdoTypeKey = "return" ;
/**
 * 出库类型约束---其他出库
 */
export const OTHER: OdoTypeKey = "other" ;

/**
 * 定义出库类型的选项 --- 销售出库
 */
export const SALE_ODO: DefaultOptionType = {key: "odo-type-sale", value: SALE, label: "销售出库"} ;
/**
 * 定义出库类型的选项 --- 服务出库
 */
export const SERVICE_ODO: DefaultOptionType = {key: "odo-type-service", value: SERVICE, label: "服务出库"} ;
/**
 * 定义出库类型的选项 --- 调拨出库
 */
export const TRANSFER_ODO: DefaultOptionType = {key: "odo-type-transfer", value: TRANSFER, label: "调拨出库"} ;
/**
 * 定义出库类型的选项 --- 返货出库
 */
export const RETURN_ODO: DefaultOptionType = {key: "odo-type-return", value: RETURN, label: "返货出库"} ;
/**
 * 定义出库类型的选项 --- 其他出库
 */
export const OTHER_ODO: DefaultOptionType = {key: "odo-type-other", value: OTHER, label: "其他出库"} ;
/**
 * 出库类型Select的选项
 */
export const ODO_OPTIONS: DefaultOptionType[] = [SALE_ODO,SERVICE_ODO,TRANSFER_ODO,RETURN_ODO,OTHER_ODO] ;